<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text和v-html指令</title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        {{msg}}
        <h1 v-text="msg">土鸡</h1>
        <h1>傻狗{{msg}}</h1>
        <span v-html="togo"></span>
        
    </div>
</body>

</html>
<script>
    new Vue({
        el:"#app",
        data: {
            msg:"你好，彭宝义", 
            togo:'<a href="https://www.baidu.com">百度一下</a>'
        }
    })
</script>